<template>
  <!--单例模式，name相同则复用一个无界实例，改变url则子应用重新渲染实例到对应路由 -->
  <WujieVue
    id="subapp-viewport"
    width="100%"
    height="100%"
    name="demo333"
    :url="vue2Url"
    :sync="true"
  ></WujieVue>
</template>

<script>
import hostMap from "../hostMap";

export default {
  data() {
    return {
      // vue2Url: hostMap("//192.168.211.55:7122/") + "/login/index",
      vue2Url: hostMap("//192.168.211.55:8202/") + "/admin/top",
    };
  },
  methods: {
    jump(name) {
      console.log("------demo333------");
      this.$router.push({ name });
    },
  },
};
</script>

<style lang="scss" scoped></style>
